package com.softserveinc.moviedbapp.parser;

import android.util.Log;

public class MethodBrowseSearchParserFactory {

	private static String TAG = MethodBrowseSearchParserFactory.class.getSimpleName();

	public static IMovieDBMethodBrowseSearch getParser(final String type) {

		if (type.equals("xml")) {
			Log.d(TAG, "returning SAXParserMovieBrowse");
			return new SAXParserMovieBrowse();
		} else if (type.equals("json")) {
			Log.d(TAG, "returning JSONParserMovieBrowse");
			return new JSONParserMovieBrowse();
		}

		return null;
	}
}
